<template>
	<view>
		<view class="title" @click="toOtherPage('view')">点击跳转到view页面</view>
		<view class="title" @click="toOtherPage('swiper')">点击跳转到swiper页面</view>
		<view class="title" @click="toOtherPage('scroll-view')">点击跳转到scroll-view页面</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			toOtherPage(url){
				uni.navigateTo({
					url:`/pages/components/${url}/${url}`
				})
			}
		}
	}
</script>

<style>
	.title {
		background-color: aquamarine;
		padding: 20rpx;
		margin: 20rpx 0;
	}
</style>
